package com.gking.resourcePool.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 资源床项目分组
 */
@Data
@TableName("project_group")
public class ProjectGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //用户id
    @TableField(value = "userId")
    private String userId;

    //项目名称
    @TableField(value = "name")
    private String name;

    //项目描述
    @TableField(value = "description")
    private String description;

    //项目id
    @TableField(value = "projectId")
    private String projectId;

    //是否删除 0：未删除 1：已删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //创建人id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //更新人id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;

    //删除人id
    @TableField(value = "deleteUserId")
    private String deleteUserId;
}
